package com.zjf.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zjf.entity.Food;
import com.zjf.mapper.FoodMapper;
import com.zjf.service.IFoodService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;


@Service
public class FoodServiceImpl extends ServiceImpl<FoodMapper, Food> implements IFoodService {
    @Resource
    private FoodMapper foodMapper;
    @Override
    public List<Food> listFoodByBusinessId(Integer businessId) {
        return foodMapper.listFoodByBusinessId(businessId);
    }
}

